package com.example.wiki3.entity;



public class BookItemListResponse {

    private boolean success;
    private String message;
    private  BookItem[] content;
    private int status;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public BookItem[] getContent() {
        return content;
    }

    public void setContent(BookItem[] content) {
        this.content = content;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public static class BookItem {
        private long id;
        private long ebookId;
        private long parent;
        private String name;
        private int sort;
        private int viewCount;
        private int voteCount;

        @Override
        public String toString() {
            return "BookItem{" +
                    "voteCount=" + voteCount +
                    ", viewCount=" + viewCount +
                    ", sort=" + sort +
                    ", name='" + name + '\'' +
                    ", parent=" + parent +
                    ", ebookId=" + ebookId +
                    ", id=" + id +
                    '}';
        }

        public long getId() {
            return id;
        }

        public void setId(long id) {
            this.id = id;
        }

        public long getEbookId() {
            return ebookId;
        }

        public void setEbookId(long ebookId) {
            this.ebookId = ebookId;
        }

        public long getParent() {
            return parent;
        }

        public void setParent(long parent) {
            this.parent = parent;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getSort() {
            return sort;
        }

        public void setSort(int sort) {
            this.sort = sort;
        }

        public int getViewCount() {
            return viewCount;
        }

        public void setViewCount(int viewCount) {
            this.viewCount = viewCount;
        }

        public int getVoteCount() {
            return voteCount;
        }

        public void setVoteCount(int voteCount) {
            this.voteCount = voteCount;
        }
    }
}